Step | Using IRIS IM | Using Xlib |
---|---|---|
"Opening the X Display" | XtOpenApplication | XOpenDisplay |
Making sure GLX is supported (optional) | glXQueryExtension glXQueryVersion | glXQueryExtension glXQueryVersion |
"Selecting a Visual" | glXChooseVisual | glXChooseVisual |
"Creating a Rendering Context" | glXCreateContext | glXCreateContext |
"Creating the Window" (see Chapter 3, "OpenGL and X: Examples") | XtVaCreateManagedWidget, with glwMDrawingAreaWidgetClass | XCreateColormap XCreateWindow |
"Binding the Context to the Window" | GLwDrawingAreaMakeCurrent | glXMakeCurrent |
"Mapping the Window" | XtRealizeWidget | XMapWindow |
Additional example programs are provided in Chapter 3, "OpenGL and X: Examples."